package top.itmeans.yes.admin.config;

import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import top.itmeans.yes.common.config.BaseSwaggerConfig;
import top.itmeans.yes.common.domain.SwaggerProperties;

/**
 * Swagger API文档相关配置
 * @author Yiming.Cao
 */
@Configuration
@EnableSwagger2
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("top.itmeans.yes.admin.controller")
                .title("yes后台系统")
                .description("yes后台相关接口文档")
                .contactName("itmeans")
                .contactEmail("NamingCao@163.com")
                .version("v1.0")
                .enableSecurity(true)
                .build();
    }
}
